package test;

/**
 * @author oldliu
 * @since 1.0
 */
public class Digui {
    public static void a(){
        b();
    }
    public static void b(){
        a();
    }
    //阶乘
    public static long jiechen(int k){
        if(k<=1)
            return 1L;
        return k*jiechen(k-1);
    }
    //求斐波拉契数列的第k项
//    public static long fb(int k){
//
//    }
    public static void s(int k){
        if(k<=0)
            return;
        System.out.println(k);
        s(k-1);
    }
    public static void main(String[] args) {
       // a();
        long jiechen = jiechen(5);
        System.out.println(jiechen);
        s(10);
    }
}
